import React from 'react';
import Index from './index';

function Transform({ match, location }) {
  const {
    params: { transformId },
  } = match;
  const {
    query: { versionId, readOnly, sourceType },
  } = location;

  return <Index transformId={transformId} versionId={versionId} readOnly={readOnly === 'true'} sourceType={sourceType} />;
}

export default Transform;
